﻿<!DOCTYPE html>
<html lang="en">

<head>
	<th:block th:include="include :: header('数据用户登录')" />
</head>

<body>
	<div class="wrapper wrapper-content">
        <div class="row">
			<div class="col-sm-3">
			</div>
            <div class="col-sm-6">
                <form id="signupForm" autocomplete="off">
                    <h4 class="no-margins">数据用户登录：</h4>
					<br/>
                    <input type="text"     name="userName" class="form-control uname"     placeholder="用户名"/>
					<br/>
                    <input type="password" name="userPassword" class="form-control pword"     placeholder="密码"/>
					<br/>
                    <button class="btn btn-success btn-block" id="btnSubmit" data-loading="正在验证登录，请稍候...">登录</button>
                </form>
            </div>
			<div class="col-sm-3">
			</div>
        </div>
     </div>

<th:block th:include="include :: footer" />
	
	<script>
		$("#btnSubmit").click(function(){
			var data = $("#signupForm").serializeArray();
            $.operate.saveModal("/auto_service/nasUser/userLogin", data, function(result){
				if (result.code == web_status.SUCCESS) {
					$.modal.openTab("文件操作","/hddata/getFileOperatePage");
                }else{
                	$.modal.alertSuccess(result.msg);
                }
			});
		 }); 
	</script>

</body>

</html>